package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @program: springboot89nep
 * @description:
 * @author: Baiyyy
 * @create: 2025-02-18 10:06
 **/
@Data
@NoArgsConstructor
public class FurniturePageResponse {
    private List<HyFurnitureWithImage> content; // 分页内容
    private long total;  // 总记录数
    private long totalPages;  // 总页数
    private int pageNum;  // 当前页码
    private int pageSize;  // 每页数量

    // 构造方法
    public FurniturePageResponse(List<HyFurnitureWithImage> content, long total, long totalPages, int pageNum, int pageSize) {
        this.content = content;
        this.total = total;
        this.totalPages = totalPages;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    // Getter 和 Setter 方法
    public List<HyFurnitureWithImage> getContent() {
        return content;
    }

    public void setContent(List<HyFurnitureWithImage> content) {
        this.content = content;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public long getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(long totalPages) {
        this.totalPages = totalPages;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
